package com.coderyeah.cosmetology.controller;


import com.coderyeah.cosmetology.service.TechnicianService;
import com.coderyeah.cosmetology.util.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author lqs
 * @since 2022-05-24
 */
@RestController
@RequestMapping("/technician")
public class TechnicianController {
    @Resource
    private TechnicianService technicianService;

    @GetMapping("queryAllTechInfo")
    public Result queryAllTechInfo() {
        return technicianService.queryAllTechInfo();
    }


    @GetMapping("queryTechInfo")
    public Result queryTechInfo(String id) {
        return technicianService.queryTechInfo(id);
    }

}

